import request from '@/utils/request'

// 查询H5图文列表
export function listGraphic(query) {
  return request({
    url: '/system/graphic/list',
    method: 'get',
    params: query
  })
}

// 查询H5图文详细
export function getGraphic(graphicId) {
  return request({
    url: '/system/graphic/' + graphicId,
    method: 'get'
  })
}

// 新增H5图文
export function addGraphic(data) {
  return request({
    url: '/system/graphic',
    method: 'post',
    data: data
  })
}

// 修改H5图文
export function updateGraphic(data) {
  return request({
    url: '/system/graphic',
    method: 'put',
    data: data
  })
}

// 删除H5图文
export function delGraphic(graphicId) {
  return request({
    url: '/system/graphic/' + graphicId,
    method: 'delete'
  })
}

// 导出H5图文
export function exportGraphic(query) {
  return request({
    url: '/system/graphic/export',
    method: 'get',
    params: query
  })
}